<?php
// Define Portal ID -- CHANGE ID IN DIFFERENT APPLICATION
define('PORTAL_ID',2);

// Portal ID changable
if (isset($_SESSION['HNS_PORTAL']))
	define('XPORTAL_ID',$_SESSION['HNS_PORTAL']);
else {
	define('XPORTAL_ID',1);
	$_SESSION['HNS_PORTAL'] = 1;
}
	
// Define hostname 
define('HOST_NAME','http://localhost:81/hnsf/apps/hns/');

// Define root path
define('ROOT_PATH', dirname(__FILE__));

// System path
define('SYSTEM_PATH', dirname(dirname(ROOT_PATH)));

// Define separator
define('SEPARATOR','\\');

// Define layout path
define('LAYOUT_PATH', SYSTEM_PATH.SEPARATOR.'layouts');

// Define Library path
define('LIBRARY_PATH', SYSTEM_PATH.SEPARATOR.'lib');

// Define Module Path 
define('MODULE_PATH', SYSTEM_PATH.SEPARATOR.'modules');

// Define front-end module path
define('FRONT_MODULE_PATH', SYSTEM_PATH.SEPARATOR.'modules');

// Define the table page size
define('PAGE_SIZE',10);

// Database Connection
mysql_connect('localhost','root','123456');
mysql_select_db('hns_portal');

// Load the framework
require_once(LIBRARY_PATH.SEPARATOR.'HBase.php');

// Define Error pages

$GLOBALS['ERRORPAGES']	= array(
		'404'=>'error/404.php',
		'500'=>'error/500.php'
	);